package com.qijian.production.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class WorkOrderExcelVo {

    @Excel(name = "订单号", sort = 1)
    private String orderNo;

    @Excel(name = "工厂编码", sort = 2)
    private String factoryCode;

    @Excel(name = "物料号", sort = 3)
    private String itemCode;

    @Excel(name = "旧物料号", sort = 4, type = Excel.Type.EXPORT)
    private String oldItemCode;

    @Excel(name = "物料描述", sort = 5, type = Excel.Type.EXPORT)
    private String itemName;

    @Excel(name = "物料类型", sort = 6, type = Excel.Type.EXPORT)
    private String itemType;

    @Excel(name = "订单数量", sort = 7)
    private BigDecimal qty;

    @Excel(name = "计件单位", sort = 8, type = Excel.Type.EXPORT)
    private String itemUnits;

    @Excel(name = "已生产数量", sort = 9, type = Excel.Type.EXPORT)
    private BigDecimal producedQty;

    @Excel(name = "交付日期", sort = 10, width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliverDate;


    @Excel(name = "预估开产日期", sort = 11, width = 30, dateFormat = "yyyy-MM-dd")
    private Date planStartDate;

    @Excel(name = "预估完工日期", sort = 12, width = 30, dateFormat = "yyyy-MM-dd")
    private Date planEndDate;

    @Excel(name = "实际开产日期", sort = 13, width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualStartDate;

    @Excel(name = "实际完工日期", sort = 14, width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualEndDate;

    @Excel(name = "订单状态", sort = 15, readConverterExp = "0=待排产,1=已排产,2=已完工")
    private String status;



}
